<?php

namespace app\libs\api;

/**
 * API返回码
 * Class ApiCode
 * @package app\libs\api
 */
class ApiCode
{
    static public $code = [
        '1' => '操作成功',
        '0' => '操作失败',

        '500' => '未知错误',
        '991' => '参数错误',
        '992' => '异常错误',

        '1001' => '记录未找到',
        '1002' => '删除操作失败',
        '1003' => '添加操作失败',
        '1004' => '更新操作失败',

        '2001' => '非法请求来源',
        '2002' => 'Token非法',
        '2003' => 'Token未匹配用户',
        '2004' => 'Token已过期',
        '2005' => 'Token已失效',
        '2006' => '用户不存在',
        '2007' => '密码不正确',
        '2008' => '当前账号不存在或已被停用',
        '2009' => '当前用户组不存在或已被停用',
        '2010' => '当前账号已被封禁',
        '2011' => '当前账号暂无权限',
        '2012' => '微信授权失败',

        '3001' => '文件类型不支持',
        '3002' => '文件校验失败',
        '3003' => '文件上传失败',
        '3004' => '未检测到文件',
        '3005' => '未找到文件记录',
        '3006' => '文件删除失败',
        '4001' => '验证码错误或已过期',

        '5001' => '验证码不正确',
        '5002' => '验证次数过多，请重新获取验证码',
        '5003' => '系统检测到刷码行为',
        '5004' => '发送失败',

    ];
}
